import {defineStore} from 'pinia' //引入pinia

import {useStorePublicMain} from './modules/publicmain.js'
import {useStoreLogin} from './modules/login.js'
import {useStoreHome} from './modules/home.js'
import {useStoreConnect} from './modules/connect.js'


export const useStoreMain = defineStore("main", {
    state: () => {
        return ({
            publicmain: useStorePublicMain(),
            login: useStoreLogin(),
            home: useStoreHome(),
            connect: useStoreConnect(),
        })
    },
    actions: {
        increment() {
            this.login;
        },
    },
})
